<template>
  <div>
    <ATop :orderInfo="orderInfo" :orLiInfo="orLiInfo"/>
    <Common :orderInfo="orderInfo" :orLiInfo="orLiInfo"/>
    <MSmiddle :orderInfo="orderInfo" :orLiInfo="orLiInfo"/>

  </div>
</template>

<script>
import ATop from './rjmsCom/aTop';
import Common from './rjmsCom/common';
import MSmiddle from './rjmsCom/MSmiddle';
export default {
  name: 'msDetails',
  components: {ATop,MSmiddle,Common},
  data () {
    let {
      $route:{
        query:{
          order_id
        }
      }
    }=this;
    let data = {
      order_id,
      orLiInfo:{},//商品订单详情
      orderInfo:{}//服务订单详情
    };
    let tool = {};
    return Object.assign(data, tool);
  },
  created(){
    this.getData();
  },
  methods:{
    getData(){
      let {order_id}=this;
      //订单详情
      $ajax.orderInfo(order_id,resData=>{
        this.orLiInfo=resData;
      });
      //版权详情
      $ajax.copyrightII(order_id,resData=>{
        this.orderInfo=resData;
      });
    }
  },
  mounted () {
    //
  }
}
</script>

